package com.ztjc.day04_picasso;

import android.app.Activity;
import android.os.Bundle;
import android.widget.ImageView;

import com.squareup.picasso.Picasso;

public class MainActivity extends Activity {

    private ImageView iv_image;
    private String path = "http://girlatlas.b0.upaiyun.com/3215/20140626/1526105ed48725abb025.jpg!mid";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        iv_image = (ImageView) findViewById(R.id.iv_image);
        Picasso.with(this).load(path).into(iv_image);
    }

}
